home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / programr / vbasic / health.exe / ASSESS2.FRM < prev    next >
Text File  |  1993-07-22  |  21KB  |  614 lines

  1. VERSION 2.00
  2. Begin Form assess2 
  3.    BorderStyle     =   0  'None
  4.    Caption         =   "assess2"
  5.    ClientHeight    =   6915
  6.    ClientLeft      =   135
  7.    ClientTop       =   600
  8.    ClientWidth     =   9495
  9.    Height          =   7320
  10.    Left            =   75
  11.    LinkMode        =   1  'Source
  12.    LinkTopic       =   "Form3"
  13.    ScaleHeight     =   6915
  14.    ScaleWidth      =   9495
  15.    Tag             =   "diagnosis"
  16.    Top             =   255
  17.    Width           =   9615
  18.    Begin SSFrame Frame3D1 
  19.       Alignment       =   2  'Center
  20.       Caption         =   "IN CASE OF EMERGENCY NOTIFY"
  21.       Font3D          =   2  'Raised w/heavy shading
  22.       FontBold        =   0   'False
  23.       FontItalic      =   0   'False
  24.       FontName        =   "MS Sans Serif"
  25.       FontSize        =   13.5
  26.       FontStrikethru  =   0   'False
  27.       FontUnderline   =   0   'False
  28.       ForeColor       =   &H00000000&
  29.       Height          =   6945
  30.       Left            =   0
  31.       TabIndex        =   8
  32.       Top             =   -15
  33.       Width           =   9495
  34.       Begin AniPushButton AniButton2 
  35.          BackColor       =   &H00FFFFFF&
  36.          Height          =   480
  37.          Left            =   4575
  38.          PictDrawMode    =   1  'Autosize control
  39.          Picture         =   ASSESS2.FRX:0000
  40.          Speed           =   162
  41.          TabIndex        =   12
  42.          TextPosition    =   2  'Left
  43.          Top             =   6450
  44.          Width           =   480
  45.       End
  46.       Begin AniPushButton AniButton1 
  47.          BackColor       =   &H00C0C0C0&
  48.          Caption         =   "Back Page"
  49.          Height          =   465
  50.          Index           =   1
  51.          Left            =   540
  52.          Picture         =   ASSESS2.FRX:05E2
  53.          Speed           =   162
  54.          TabIndex        =   20
  55.          TextPosition    =   1  'Right
  56.          Top             =   6405
  57.          Width           =   1515
  58.       End
  59.       Begin AniPushButton AniButton1 
  60.          BackColor       =   &H00C0C0C0&
  61.          Caption         =   "Next Page"
  62.          Height          =   465
  63.          Index           =   0
  64.          Left            =   6930
  65.          Picture         =   ASSESS2.FRX:148E
  66.          Speed           =   162
  67.          TabIndex        =   21
  68.          TextPosition    =   2  'Left
  69.          Top             =   6315
  70.          Width           =   1440
  71.       End
  72.       Begin PictureBox Picture4 
  73.          Height          =   3120
  74.          Left            =   0
  75.          ScaleHeight     =   3090
  76.          ScaleWidth      =   9465
  77.          TabIndex        =   13
  78.          Top             =   3150
  79.          Width           =   9495
  80.          Begin PictureBox Picture5 
  81.             BackColor       =   &H00C0C0C0&
  82.             Height          =   3090
  83.             Left            =   0
  84.             ScaleHeight     =   3060
  85.             ScaleWidth      =   9465
  86.             TabIndex        =   14
  87.             Top             =   0
  88.             Width           =   9495
  89.             Begin AniPushButton AniButton3 
  90.                BackColor       =   &H00C0C0C0&
  91.                Cycle           =   2  '2-state 1/2 & 1/2
  92.                Height          =   480
  93.                Index           =   1
  94.                Left            =   8715
  95.                PictDrawMode    =   1  'Autosize control
  96.                Picture         =   ASSESS2.FRX:233A
  97.                TabIndex        =   25
  98.                Top             =   2535
  99.                Width           =   480
  100.             End
  101.             Begin VHedit HEdit3 
  102.                FontBold        =   -1  'True
  103.                FontItalic      =   0   'False
  104.                FontName        =   "MS Sans Serif"
  105.                FontSize        =   18
  106.                FontStrikethru  =   0   'False
  107.                FontUnderline   =   0   'False
  108.                Height          =   2505
  109.                InflateBottom   =   270
  110.                InflateLeft     =   270
  111.                InflateRight    =   270
  112.                InflateTop      =   270
  113.                Left            =   -30
  114.                TabIndex        =   19
  115.                Top             =   -15
  116.                Version         =   268435458
  117.                Width           =   9510
  118.             End
  119.             Begin Label Label3 
  120.                Alignment       =   2  'Center
  121.                BackColor       =   &H00C0C0C0&
  122.                Caption         =   "Touch here for more room"
  123.                FontBold        =   -1  'True
  124.                FontItalic      =   0   'False
  125.                FontName        =   "MS Sans Serif"
  126.                FontSize        =   9.75
  127.                FontStrikethru  =   0   'False
  128.                FontUnderline   =   0   'False
  129.                Height          =   255
  130.                Left            =   90
  131.                TabIndex        =   15
  132.                Top             =   2700
  133.                Width           =   3375
  134.             End
  135.          End
  136.       End
  137.       Begin PictureBox Picture2 
  138.          BackColor       =   &H00C0C0C0&
  139.          Height          =   2400
  140.          Left            =   5535
  141.          ScaleHeight     =   2370
  142.          ScaleWidth      =   3945
  143.          TabIndex        =   10
  144.          Top             =   375
  145.          Width           =   3975
  146.          Begin VBedit BEdit2 
  147.             BackColor       =   &H00FFFFFF&
  148.             CellHeight      =   480
  149.             CellWidth       =   320
  150.             CharSet         =   16404
  151.             CombBaseLine    =   390
  152.             CombEndHeight   =   350
  153.             CombEndMarker   =   0   'False
  154.             CombHeight      =   250
  155.             FontBold        =   0   'False
  156.             FontItalic      =   0   'False
  157.             FontName        =   "MS Sans Serif"
  158.             FontSize        =   18
  159.             FontStrikethru  =   0   'False
  160.             FontUnderline   =   0   'False
  161.             Height          =   735
  162.             Index           =   1
  163.             InflateBottom   =   180
  164.             InflateLeft     =   180
  165.             InflateRight    =   180
  166.             InflateTop      =   240
  167.             InkWidth        =   2
  168.             Left            =   0
  169.             TabIndex        =   3
  170.             Top             =   1605
  171.             Version         =   268435458
  172.             Width           =   3900
  173.          End
  174.          Begin VHedit hedit2 
  175.             Enabled         =   0   'False
  176.             FontBold        =   -1  'True
  177.             FontItalic      =   0   'False
  178.             FontName        =   "MS Sans Serif"
  179.             FontSize        =   18
  180.             FontStrikethru  =   0   'False
  181.             FontUnderline   =   0   'False
  182.             Height          =   525
  183.             Index           =   1
  184.             InflateBottom   =   270
  185.             InflateLeft     =   270
  186.             InflateRight    =   270
  187.             InflateTop      =   270
  188.             Left            =   1635
  189.             TabIndex        =   7
  190.             Top             =   1350
  191.             Version         =   268435458
  192.             Visible         =   0   'False
  193.             Width           =   1500
  194.          End
  195.          Begin VBedit BEdit2 
  196.             BackColor       =   &H00FFFFFF&
  197.             CellHeight      =   480
  198.             CellWidth       =   320
  199.             CharSet         =   16404
  200.             CombBaseLine    =   390
  201.             CombEndHeight   =   350
  202.             CombEndMarker   =   0   'False
  203.             CombHeight      =   250
  204.             FontBold        =   0   'False
  205.             FontItalic      =   0   'False
  206.             FontName        =   "MS Sans Serif"
  207.             FontSize        =   18
  208.             FontStrikethru  =   0   'False
  209.             FontUnderline   =   0   'False
  210.             Height          =   735
  211.             Index           =   0
  212.             InflateBottom   =   180
  213.             InflateLeft     =   180
  214.             InflateRight    =   180
  215.             InflateTop      =   240
  216.             InkWidth        =   2
  217.             Left            =   45
  218.             TabIndex        =   2
  219.             Top             =   450
  220.             Version         =   268435458
  221.             Width           =   3900
  222.          End
  223.          Begin VHedit hedit2 
  224.             Enabled         =   0   'False
  225.             FontBold        =   -1  'True
  226.             FontItalic      =   0   'False
  227.             FontName        =   "MS Sans Serif"
  228.             FontSize        =   18
  229.             FontStrikethru  =   0   'False
  230.             FontUnderline   =   0   'False
  231.             Height          =   585
  232.             Index           =   0
  233.             InflateBottom   =   270
  234.             InflateLeft     =   270
  235.             InflateRight    =   270
  236.             InflateTop      =   270
  237.             Left            =   2205
  238.             TabIndex        =   6
  239.             Top             =   315
  240.             Version         =   268435458
  241.             Visible         =   0   'False
  242.             Width           =   1215
  243.          End
  244.          Begin Label Label4 
  245.             Alignment       =   2  'Center
  246.             BackColor       =   &H00C0C0C0&
  247.             Caption         =   "WORK"
  248.             FontBold        =   -1  'True
  249.             FontItalic      =   0   'False
  250.             FontName        =   "MS Sans Serif"
  251.             FontSize        =   12
  252.             FontStrikethru  =   0   'False
  253.             FontUnderline   =   0   'False
  254.             Height          =   300
  255.             Index           =   2
  256.             Left            =   30
  257.             TabIndex        =   17
  258.             Top             =   1245
  259.             Width           =   885
  260.          End
  261.          Begin Label Label4 
  262.             Alignment       =   2  'Center
  263.             BackColor       =   &H00C0C0C0&
  264.             Caption         =   "HOME"
  265.             FontBold        =   -1  'True
  266.             FontItalic      =   0   'False
  267.             FontName        =   "MS Sans Serif"
  268.             FontSize        =   12
  269.             FontStrikethru  =   0   'False
  270.             FontUnderline   =   0   'False
  271.             Height          =   270
  272.             Index           =   0
  273.             Left            =   30
  274.             TabIndex        =   16
  275.             Top             =   75
  276.             Width           =   825
  277.          End
  278.       End
  279.       Begin PictureBox Picture3 
  280.          BackColor       =   &H00000000&
  281.          FontBold        =   -1  'True
  282.          FontItalic      =   0   'False
  283.          FontName        =   "MS Sans Serif"
  284.          FontSize        =   24
  285.          FontStrikethru  =   0   'False
  286.          FontUnderline   =   0   'False
  287.          ForeColor       =   &H00FFFFFF&
  288.          Height          =   2415
  289.          Left            =   5040
  290.          ScaleHeight     =   2385
  291.          ScaleWidth      =   465
  292.          TabIndex        =   11
  293.          Top             =   375
  294.          Width           =   495
  295.       End
  296.       Begin PictureBox Picture1 
  297.          BackColor       =   &H00C0C0C0&
  298.          Height          =   2415
  299.          Left            =   -15
  300.          ScaleHeight     =   2385
  301.          ScaleWidth      =   5025
  302.          TabIndex        =   9
  303.          Top             =   375
  304.          Width           =   5055
  305.          Begin AniPushButton AniButton3 
  306.             BackColor       =   &H00C0C0C0&
  307.             Cycle           =   2  '2-state 1/2 & 1/2
  308.             Height          =   480
  309.             Index           =   0
  310.             Left            =   4470
  311.             PictDrawMode    =   1  'Autosize control
  312.             Picture         =   ASSESS2.FRX:291C
  313.             TabIndex        =   22
  314.             Top             =   1665
  315.             Width           =   480
  316.          End
  317.          Begin VBedit BEdit1 
  318.             BackColor       =   &H00FFFFFF&
  319.             CellHeight      =   400
  320.             CellWidth       =   360
  321.             CharSet         =   16655
  322.             CombBaseLine    =   400
  323.             CombEndHeight   =   350
  324.             CombEndMarker   =   0   'False
  325.             CombHeight      =   250
  326.             FontBold        =   0   'False
  327.             FontItalic      =   0   'False
  328.             FontName        =   "MS Sans Serif"
  329.             FontSize        =   18
  330.             FontStrikethru  =   0   'False
  331.             FontUnderline   =   0   'False
  332.             ForeColor       =   &H00000000&
  333.             Height          =   735
  334.             Index           =   1
  335.             InflateBottom   =   50
  336.             InflateLeft     =   180
  337.             InflateRight    =   180
  338.             InflateTop      =   400
  339.             InkWidth        =   2
  340.             Left            =   45
  341.             TabIndex        =   1
  342.             Top             =   1590
  343.             Version         =   268435458
  344.             Width           =   4290
  345.          End
  346.          Begin VHedit hedit1 
  347.             Enabled         =   0   'False
  348.             FontBold        =   -1  'True
  349.             FontItalic      =   0   'False
  350.             FontName        =   "MS Sans Serif"
  351.             FontSize        =   18
  352.             FontStrikethru  =   0   'False
  353.             FontUnderline   =   0   'False
  354.             Height          =   435
  355.             Index           =   1
  356.             InflateBottom   =   270
  357.             InflateLeft     =   270
  358.             InflateRight    =   270
  359.             InflateTop      =   270
  360.             Left            =   1365
  361.             TabIndex        =   5
  362.             Top             =   1515
  363.             Version         =   268435458
  364.             Visible         =   0   'False
  365.             Width           =   1815
  366.          End
  367.          Begin VBedit BEdit1 
  368.             BackColor       =   &H00FFFFFF&
  369.             CellHeight      =   400
  370.             CellWidth       =   360
  371.             CharSet         =   16655
  372.             CombBaseLine    =   400
  373.             CombEndHeight   =   350
  374.             CombEndMarker   =   0   'False
  375.             CombHeight      =   250
  376.             FontBold        =   0   'False
  377.             FontItalic      =   0   'False
  378.             FontName        =   "MS Sans Serif"
  379.             FontSize        =   18
  380.             FontStrikethru  =   0   'False
  381.             FontUnderline   =   0   'False
  382.             ForeColor       =   &H00000000&
  383.             Height          =   735
  384.             Index           =   0
  385.             InflateBottom   =   50
  386.             InflateLeft     =   180
  387.             InflateRight    =   180
  388.             InflateTop      =   400
  389.             InkWidth        =   2
  390.             Left            =   0
  391.             TabIndex        =   0
  392.             Top             =   480
  393.             Version         =   268435458
  394.             Width           =   4995
  395.          End
  396.          Begin VHedit hedit1 
  397.             Enabled         =   0   'False
  398.             FontBold        =   -1  'True
  399.             FontItalic      =   0   'False
  400.             FontName        =   "MS Sans Serif"
  401.             FontSize        =   18
  402.             FontStrikethru  =   0   'False
  403.             FontUnderline   =   0   'False
  404.             Height          =   435
  405.             Index           =   0
  406.             InflateBottom   =   270
  407.             InflateLeft     =   270
  408.             InflateRight    =   270
  409.             InflateTop      =   270
  410.             Left            =   1155
  411.             TabIndex        =   4
  412.             Top             =   330
  413.             Version         =   268435458
  414.             Visible         =   0   'False
  415.             Width           =   1815
  416.          End
  417.          Begin Label Label1 
  418.             Alignment       =   2  'Center
  419.             BackColor       =   &H00C0C0C0&
  420.             Caption         =   "RELATION"
  421.             FontBold        =   -1  'True
  422.             FontItalic      =   0   'False
  423.             FontName        =   "MS Sans Serif"
  424.             FontSize        =   12
  425.             FontStrikethru  =   0   'False
  426.             FontUnderline   =   0   'False
  427.             Height          =   270
  428.             Index           =   1
  429.             Left            =   45
  430.             TabIndex        =   24
  431.             Top             =   1260
  432.             Width           =   1395
  433.          End
  434.          Begin Label Label1 
  435.             Alignment       =   2  'Center
  436.             BackColor       =   &H00C0C0C0&
  437.             Caption         =   "NAME"
  438.             FontBold        =   -1  'True
  439.             FontItalic      =   0   'False
  440.             FontName        =   "MS Sans Serif"
  441.             FontSize        =   12
  442.             FontStrikethru  =   0   'False
  443.             FontUnderline   =   0   'False
  444.             Height          =   270
  445.             Index           =   0
  446.             Left            =   45
  447.             TabIndex        =   23
  448.             Top             =   75
  449.             Width           =   765
  450.          End
  451.       End
  452.       Begin Label Label2 
  453.          Alignment       =   2  'Center
  454.          BackColor       =   &H00C0C0C0&
  455.          Caption         =   "ADMITTING MEDICAL DIAGNOSIS"
  456.          FontBold        =   -1  'True
  457.          FontItalic      =   0   'False
  458.          FontName        =   "MS Sans Serif"
  459.          FontSize        =   9.75
  460.          FontStrikethru  =   0   'False
  461.          FontUnderline   =   0   'False
  462.          Height          =   255
  463.          Left            =   2580
  464.          TabIndex        =   18
  465.          Top             =   2820
  466.          Width           =   4935
  467.       End
  468.    End
  469. End
  470.  
  471. Sub AniButton1_Click (Index As Integer)
  472. If smartform(3) Then
  473.  
  474.         Select Case Index
  475.         Case 1
  476.         assess1.Show
  477.         assess2.Hide
  478.         Case 0
  479.         medhist.Show
  480.         assess2.Hide
  481.         End Select
  482. Else
  483. formcheck "Emergency Notify"
  484. End If
  485.  
  486. End Sub
  487.  
  488. Sub AniButton2_Click ()
  489. If smartform(3) Then
  490. menumode assess2
  491. Else
  492. formcheck "Emergency Notify"
  493. End If
  494.  
  495.  
  496. End Sub
  497.  
  498. Sub AniButton3_Click (Index As Integer)
  499. Select Case Index
  500. Case 0
  501.     Select Case anibutton3(Index).value
  502.     Case 2
  503.     editswap bedit1(0), hedit1(0), 1
  504.     hedit1(0).visible = -1
  505.     bedit1(0).visible = 0
  506.     editswap bedit1(1), hedit1(1), 1
  507.     hedit1(1).visible = -1
  508.     bedit1(1).visible = 0
  509.     editswap bedit2(0), hedit2(0), 1
  510.     hedit2(0).visible = -1
  511.     bedit2(0).visible = 0
  512.     editswap bedit2(1), hedit2(1), 1
  513.     hedit2(1).visible = -1
  514.     bedit2(1).visible = 0
  515.     temprecord.name = bedit1(0).text
  516.     temprecord.relation = bedit1(1).text
  517.     temprecord.home = bedit2(0).text
  518.     temprecord.work = bedit2(1).text
  519.     Case 1
  520.     editswap bedit1(0), hedit1(0), 2
  521.     hedit1(0).visible = 0
  522.     bedit1(0).visible = -1
  523.     editswap bedit1(1), hedit1(1), 2
  524.     hedit1(1).visible = 0
  525.     bedit1(1).visible = -1
  526.     editswap bedit2(0), hedit2(0), 2
  527.     hedit2(0).visible = 0
  528.     bedit2(0).visible = -1
  529.     editswap bedit2(1), hedit2(0), 2
  530.     hedit2(1).visible = 0
  531.     bedit2(1).visible = -1
  532.     End Select
  533. Case 1   'LOCK FOR DIAGNOSIS FIELD
  534.     Select Case anibutton3(Index).value
  535.     Case 2
  536.     hedit3.enabled = 0
  537.     temprecord.hed1 = hedit3.text
  538.     Case 1
  539.     hedit3.enabled = -1
  540.     hedit3.SetFocus
  541.     hedit3.selstart = Len(hedit3.text)
  542.     
  543.     End Select
  544. End Select
  545.  
  546.  
  547. End Sub
  548.  
  549. Sub BEdit2_Update (Index As Integer)
  550. If bedit2(Index).selstart = 11 Then
  551. If Mid$(bedit2(Index).text, 4, 1) <> "-" Or Mid$(bedit2(Index).text, 8, 1) <> "-" Then
  552.     For n = 1 To Len(bedit2(Index).text)
  553.         If n = 4 Or n = 8 Then
  554.             a$ = a$ + "-"
  555.             'a$ = a$ + Mid$(bedit2(Index).text, n, 1)
  556.         Else
  557.             a$ = a$ + Mid$(bedit2(Index).text, n, 1)
  558.         End If
  559.     Next n
  560.     bedit2(Index).text = a$
  561. End If
  562. bedit2(Index).selstart = 12
  563. End If
  564.  
  565. End Sub
  566.  
  567. Sub Command1_Click ()
  568. assess3.Show
  569. End Sub
  570.  
  571. Sub Form_Load ()
  572. bedit2(0).text = "   -   -    "
  573. bedit2(1).text = "   -   -    "
  574. assess2.Move 0, 0, screen.WIDTH, screen.height
  575. frame3d1.Move 0, 0, assess2.WIDTH, assess2.height
  576. hedit1(0).Move bedit1(0).left, bedit1(0).top, bedit1(0).WIDTH, bedit1(0).height * 1.1
  577. hedit1(1).Move bedit1(1).left, bedit1(1).top, bedit1(1).WIDTH, bedit1(1).height * 1.1
  578. hedit2(0).Move bedit2(0).left, bedit2(0).top, bedit2(0).WIDTH, bedit2(0).height * 1.1
  579. hedit2(1).Move bedit2(1).left, bedit2(1).top, bedit2(1).WIDTH, bedit2(1).height * 1.1
  580. anibutton1(1).Move .1 * anibutton1(1).WIDTH, frame3d1.height - 1.1 * anibutton1(0).height
  581. anibutton2.Move (frame3d1.WIDTH - anibutton2.WIDTH) / 2, frame3d1.height - 1.1 * anibutton2.height
  582. anibutton1(0).Move frame3d1.WIDTH - 1.1 * anibutton1(0).WIDTH, frame3d1.height - 1.1 * anibutton1(1).height
  583. picture3.Scale (1, 1)-(2, 6)
  584. picture3.autoredraw = -1
  585. picture3.currentx = 1.1
  586. picture3.currenty = 1
  587. picture3.Print "P";
  588. picture3.currentx = 1.1
  589. picture3.currenty = 2
  590. picture3.Print "H";
  591. picture3.currentx = 1.1
  592. picture3.currenty = 3
  593. picture3.Print "O";
  594. picture3.currentx = 1.1
  595. picture3.currenty = 4
  596. picture3.Print "N";
  597. picture3.currentx = 1.1
  598. picture3.currenty = 5
  599. picture3.Print "E";
  600.  
  601. End Sub
  602.  
  603. Sub HEdit3_GotFocus ()
  604. 'hedit3.delayrecog = -1
  605. End Sub
  606.  
  607. Sub Label3_Click ()
  608. bigbedit.label1.caption = assess2.label2.caption
  609. bigbedit.bedit1.text = assess2.hedit3.text
  610. bigbedit.bedit1.selstart = Len(hedit3.text)
  611. bigbedit.Show 1
  612. End Sub
  613.  
  614.